home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / comms / internet / html-related / hsc / src_docs / makefile < prev    next >
Makefile  |  1996-09-18  |  5KB  |  175 lines

  1. #
  2. # Makefile for hsc-documentation
  3. #
  4.  
  5. #
  6. # DESTDIR  - destination directory (relative)
  7. # IGNORE   - messages to be ignored
  8. # PRJFILE  - project file
  9. # STDINC   - standard includes for all sources
  10. # HSCMISC  - miscellaneous flags and options
  11. # HSC      - shell command that invokes hsc
  12. # HSCFLAGS - hsc options
  13. #
  14. # HSCDEPP  - shell command that invokes hscdepp
  15. #
  16.  
  17. #PARENT    = ../
  18. PARENT    = /
  19. DESTDIR = $(PARENT)docs/
  20. IGNORE  =ign=46
  21. PRJFILE =hsc.project
  22. STDINC  =inc/macro.hsc inc/webpage.hsc
  23. HSCMISC    =rplcent getsize compact mode=pedantic #quotemode=double
  24.  
  25. HSC     =$(PARENT)hsc
  26. HSCFLAGS=$(HSCMISC) $(IGNORE) prjfile=$(PRJFILE) to=$(DESTDIR) $(STDINC) \
  27.         prefsfile=$(PARENT)hsc.prefs msgansi status=quiet
  28.  
  29. HSCDEPP =/hscdepp
  30.  
  31. #
  32. # rule to update whole docs
  33. #
  34. all : all_hsc /index.html
  35.  
  36. #
  37. # implicit rule for html-files
  38. #
  39. $(DESTDIR)%.html : %.hsc
  40.     @echo $@
  41.     @$(HSC) $(HSCFLAGS) $< 
  42.  
  43. #
  44. # update dependencies
  45. #
  46. depend :
  47.     $(HSCDEPP) file=Makefile prjfile=$(PRJFILE) verbose
  48.  
  49. #
  50. # add new file / change includes of existing file
  51. #
  52. # example: make NEW FILE=new.hsc "INCLUDE=inc/macro.hsc inc/sepp.hsc"
  53. #
  54. NEW :
  55. ifndef FILE
  56.     @echo *** pleaese specify variable FILE (and on your option INCLUDE)
  57. else
  58.     $(HSC) $(HSCFLAGS) $(INCLUDE) from=$(FILE) 
  59. endif
  60.  
  61.  
  62. #
  63. # main page
  64. #
  65. $(PARENT)index.html : main_index.hsc
  66.     $(HSC) to=$@ $(HSCMISC) $<
  67.  
  68. # --- DO NOT MODIFY THIS LINE -- hsc-dependencies follow ---
  69.  
  70. # dependencies updated: Thursday 12-Sep-1996 11:33:29
  71.  
  72. all_hsc : /docs/features/spctags.html /docs/features/exec.html \
  73.     /docs/index.html /docs/updates.html /docs/features/expressions.html \
  74.     /docs/future.html /docs/messages.html /docs/features/syntax.html \
  75.     /docs/macro/attrib.html /docs/macro/flag.html /docs/macro/macros.html \
  76.     /docs/bugs.html /docs/project/prjfile.html /docs/project/makefile.html \
  77.     /docs/project/make.html /docs/project/hscdepp.html \
  78.     /docs/project/index.html /docs/options.html /docs/about.html \
  79.     /docs/copy.html /docs/examples.html /docs/install.html \
  80.     /docs/questions.html /docs/related.html /docs/require.html \
  81.     /docs/source.html /docs/features/absuris.html \
  82.     /docs/features/checkuri.html /docs/features/getsize.html \
  83.     /docs/features/if.html /docs/features/prefs.html \
  84.     /docs/features/rplcent.html /docs/features/spcattr.html \
  85.     /docs/features/strip.html /docs/distrib.html
  86.  
  87. /docs/features/spctags.html : features/spctags.hsc inc/macro.hsc \
  88.     inc/webpage.hsc
  89.  
  90. /docs/features/exec.html : features/exec.hsc inc/macro.hsc inc/webpage.hsc \
  91.     exmpl/exec.hsc exmpl/exec.hsc
  92.  
  93. /docs/index.html : index.hsc inc/macro.hsc inc/webpage.hsc
  94.  
  95. /docs/updates.html : updates.hsc inc/macro.hsc inc/webpage.hsc
  96.  
  97. /docs/features/expressions.html : features/expressions.hsc inc/macro.hsc \
  98.     inc/webpage.hsc
  99.  
  100. /docs/future.html : future.hsc inc/macro.hsc inc/webpage.hsc
  101.  
  102. /docs/messages.html : messages.hsc inc/macro.hsc inc/webpage.hsc
  103.  
  104. /docs/features/syntax.html : features/syntax.hsc inc/macro.hsc \
  105.     inc/webpage.hsc
  106.  
  107. /docs/macro/attrib.html : macro/attrib.hsc inc/macro.hsc inc/webpage.hsc
  108.  
  109. /docs/macro/flag.html : macro/flag.hsc inc/macro.hsc inc/webpage.hsc
  110.  
  111. /docs/macro/macros.html : macro/macros.hsc inc/macro.hsc inc/webpage.hsc \
  112.     exmpl/m_addr.hsc exmpl/m_addr.hsc exmpl/m_file.hsc exmpl/m_next.hsc \
  113.     exmpl/m_next.hsc
  114.  
  115. /docs/bugs.html : bugs.hsc inc/macro.hsc inc/webpage.hsc
  116.  
  117. /docs/project/prjfile.html : project/prjfile.hsc inc/macro.hsc \
  118.     inc/webpage.hsc
  119.  
  120. /docs/project/makefile.html : project/makefile.hsc inc/macro.hsc \
  121.     inc/webpage.hsc
  122.  
  123. /docs/project/make.html : project/make.hsc inc/macro.hsc inc/webpage.hsc
  124.  
  125. /docs/project/hscdepp.html : project/hscdepp.hsc inc/macro.hsc \
  126.     inc/webpage.hsc
  127.  
  128. /docs/project/index.html : project/index.hsc inc/macro.hsc inc/webpage.hsc
  129.  
  130. /docs/options.html : options.hsc inc/macro.hsc inc/webpage.hsc
  131.  
  132. /docs/about.html : about.hsc inc/macro.hsc inc/webpage.hsc
  133.  
  134. /docs/copy.html : copy.hsc inc/macro.hsc inc/webpage.hsc
  135.  
  136. /docs/examples.html : examples.hsc inc/macro.hsc inc/webpage.hsc
  137.  
  138. /docs/install.html : install.hsc inc/macro.hsc inc/webpage.hsc
  139.  
  140. /docs/questions.html : questions.hsc inc/macro.hsc inc/webpage.hsc
  141.  
  142. /docs/related.html : related.hsc inc/macro.hsc inc/webpage.hsc
  143.  
  144. /docs/require.html : require.hsc inc/macro.hsc inc/webpage.hsc
  145.  
  146. /docs/source.html : source.hsc inc/macro.hsc inc/webpage.hsc
  147.  
  148. /docs/features/absuris.html : features/absuris.hsc inc/macro.hsc \
  149.     inc/webpage.hsc
  150.  
  151. /docs/features/checkuri.html : features/checkuri.hsc inc/macro.hsc \
  152.     inc/webpage.hsc
  153.  
  154. /docs/features/getsize.html : features/getsize.hsc inc/macro.hsc \
  155.     inc/webpage.hsc
  156.  
  157. /docs/features/if.html : features/if.hsc inc/macro.hsc inc/webpage.hsc
  158.  
  159. /docs/features/prefs.html : features/prefs.hsc inc/macro.hsc \
  160.     inc/webpage.hsc
  161.  
  162. /docs/features/rplcent.html : features/rplcent.hsc inc/macro.hsc \
  163.     inc/webpage.hsc
  164.  
  165. /docs/features/spcattr.html : features/spcattr.hsc inc/macro.hsc \
  166.     inc/webpage.hsc exmpl/anchor.hsc exmpl/anchor.hsc
  167.  
  168. /docs/features/strip.html : features/strip.hsc inc/macro.hsc \
  169.     inc/webpage.hsc
  170.  
  171. /docs/distrib.html : distrib.hsc inc/macro.hsc inc/webpage.hsc
  172.  
  173. # --- DO NOT MODIFY THIS LINE -- hsc-dependencies precede ---
  174.